def check_Rename(name:list):
rename = []
counts = []
newname = []
for i in name:
    hasName = False;
    for j in newname:
        if i == j:
            hasName = True
            hasRename = False
    for k in range(len(rename)):
        if i == rename[k]:
            hasRename = True
            counts[k]+=1
            break
    if not hasNewname:
        newname.append(i)
    for k in range(len(rename)):
        print(rename[k],':',counts[k])
        print('new:',newname)
        return
name = ["小兴","小青","小蓝","小明","小兴","小雨"]
print(name)
check_Rename(name)



